'use strict'

/**
 * 定时器模块
 */

module.exports = ({ router, controller, io, config }) => {
  const NAMESPACE = `${config.apiPath}/refresh`
  const subRouter = router.namespace(NAMESPACE)
  const Post = subRouter.post
  const Get = subRouter.get
  const { common } = controller
  const { refresh } = common

  /**
   * 刷新微信 token
   */
  Post('/refresh_wx_token', refresh.RefreshWxToken)
}
